import axios from "axios";

const studentApi = {
  // 获取学生列表
  getStudent(params) {
    return axios.get("/students/getStudents", {
      params
    })
  },
  // 增加学生
  addStudent(data) {
    return axios.post("/students/addStudents", data)
  },
  // 删除学生
  deleteStudent(_id) {
    return axios.delete("/students/deleteStudents", {
      data: {
        _id,
      },
    })
  },
  // 修改学生
  changeStudent(data) {
    return axios.put("/students/updateStudents", data)
  }

}

export default studentApi